<?php 
	//require_once("includes/connect.php");
	//require_once("includes/function.php");

	$pet_id = $_REQUEST["pet_id"];

?>

<script type="text/javascript">
	$(document).ready(function(){

		$("#save_menus").click(function() {
			event.preventDefault();

			var reason = $("#reason").val();
			var pet_id = "<?php echo $pet_id; ?>";
			var task = "cancel";

			//alert(task);

			$.ajax({
				type: "POST",
				url: "process_status_utility.php",
				data: { 'task': task, 'reason': reason, 'pet_id': pet_id },
				cach: false,
				error: function() {
					alert("ERROR !!!!");
				},
				success: function(data){
					
					window.location.href="index.php?pages=verify_approved_utility";
				}
			});

		});
	});
</script>

<p>
    <label>เหตุผล</label>
	<textarea class="input-block-level" rows="7" name="reason" id="reason"></textarea>
</p>
<div class="form-actions">
	<button class="btn btn-primary" id="save_menus">Save changes</button>
	<a class="btn close-dialog"><i class="icon-remove"></i> ยกเลิก</a>

</div>
